#ifndef JCRSUBWINDOW_H
#define JCRSUBWINDOW_H

#include <QMdiSubWindow>

namespace Jcr
{

class AbstractView;
class JcrSubWindowPrivate;
class JcrSubWindow : public QMdiSubWindow
{
    Q_OBJECT
public:
    explicit JcrSubWindow(QWidget* parent = nullptr);
    virtual ~JcrSubWindow();

    AbstractView* view() const;

signals:
    void viewChanged(AbstractView* oldView, AbstractView* newView);

protected:
    void setView(AbstractView* view);

private:
    JcrSubWindowPrivate* d_ptr;
    Q_DISABLE_COPY(JcrSubWindow)
};

}
#endif // JCRSUBWINDOW_H
